<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <input type="text" id="ipt" value="123">
  <input type="submit" id="btn" value="提交">
  <script>
    /*
      防抖和节流:限制函数执行的次数
      通过setTimeout的方式,在一定的时间间隔内
      将多次触发变成一次触发
    
    */
    let ipt = document.querySelector('#ipt')
    let btn = document.querySelector('#btn')
    // btn.addEventListener('click',)
  </script>
</body>

</html>